package com.project.slsx.adapter;

import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.project.slsx.R;
import com.project.slsx.bean.NewShangMengBean;

public class NewMSAdapter extends BaseQuickAdapter<NewShangMengBean.ResultBean, BaseViewHolder> {
    public NewMSAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder holder, NewShangMengBean.ResultBean item) {
        ImageView thum = holder.getView(R.id.iv_new_thum);
        holder.setText(R.id.tv_new_total, item.getTotal());
        holder.setText(R.id.tv_new_sales, item.getSailed());
        holder.setText(R.id.tv_new_title, item.getTitle());
        Glide.with(mContext).load(item.getThumb()).into(thum);
    }
}
